#pragma once
#include <cmath>
#include <cstdlib>
#include "Ray.h"
#include "Light.h"
#include "DrawScene.h"
#include "Camera.h"
#include "Object.h"
#include "Plane.h"
#include "RSM.h"

class RayTrace{
public:
	RayTrace();
	 float triangleArea2(Vector plane_data_1,Vector plane_data_2,Vector plane_data_3);
	 bool check_plane(Plane p);
	 Pixel r_trace(Ray ray,vector<Plane*> planes,Light light,Ray indirect);
};

